<?php

namespace App\Http\Controllers\Api;

use App\Atransform\ShouyeTransform;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Modules\Minicode\Entities\Shouye;

class ShouyeController extends XcxController
{
//    配置小程序的首页三宫格的接口
    public function shouye(){
        return $this->response->collection(Shouye::get(),new ShouyeTransform());
    }

    public function oneshouye($id){
        return $this->response->item(Shouye::find($id),new ShouyeTransform());
    }


}
